package com.wdt.data.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.wdt.data.util.BaseModel;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;

/**
 * <p>
 *
 * </p>
 *
 * @author ycc
 * @since 2019-06-18
 */
public class BasEmergencyresucestaff extends BaseModel {

    private static final long serialVersionUID = 1L;

    private String regionCode;

    private Integer teamId;

    /**
     * 人员类型（0 普通人员，1 负责人，
     * 2 主要负责人）
     */
    private Integer personType;

    /**
     * 应急人员名称
     */
    private String personName;

    /**
     * 职务
     */
    private String mainDuty;

    /**
     * 0 是男，1 是女
     */
    private Integer personSex;

    /**
     * 出生日期
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate birthdate;

    /**
     * 参加应急抢险日期
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate joinResuceDate;

    /**
     * 应急抢险工作专长
     */
    private String rescuespeciality;

    /**
     * 联系电话
     */
    private String telephone;

    /**
     * 是否有效（0 无效，1 有效，默认1）
     */
    private Integer isValid;

    private String note;

    public String getRegionCode() {
        return regionCode;
    }

    public void setRegionCode(String regionCode) {
        this.regionCode = regionCode;
    }

    public Integer getTeamId() {
        return teamId;
    }

    public void setTeamId(Integer teamId) {
        this.teamId = teamId;
    }

    public Integer getPersonType() {
        return personType;
    }

    public void setPersonType(Integer personType) {
        this.personType = personType;
    }

    public String getPersonName() {
        return personName;
    }

    public void setPersonName(String personName) {
        this.personName = personName;
    }

    public String getMainDuty() {
        return mainDuty;
    }

    public void setMainDuty(String mainDuty) {
        this.mainDuty = mainDuty;
    }

    public Integer getPersonSex() {
        return personSex;
    }

    public void setPersonSex(Integer personSex) {
        this.personSex = personSex;
    }

    public LocalDate getBirthdate() {
        return birthdate;
    }

    public void setBirthdate(LocalDate birthdate) {
        this.birthdate = birthdate;
    }

    public LocalDate getJoinResuceDate() {
        return joinResuceDate;
    }

    public void setJoinResuceDate(LocalDate joinResuceDate) {
        this.joinResuceDate = joinResuceDate;
    }

    public String getRescuespeciality() {
        return rescuespeciality;
    }

    public void setRescuespeciality(String rescuespeciality) {
        this.rescuespeciality = rescuespeciality;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public Integer getIsValid() {
        return isValid;
    }

    public void setIsValid(Integer isValid) {
        this.isValid = isValid;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    @Override
    public String toString() {
        return "BasEmergencyresucestaff{" +
                "regionCode=" + regionCode +
                ", teamId=" + teamId +
                ", personType=" + personType +
                ", personName=" + personName +
                ", mainDuty=" + mainDuty +
                ", personSex=" + personSex +
                ", birthdate=" + birthdate +
                ", joinResuceDate=" + joinResuceDate +
                ", rescuespeciality=" + rescuespeciality +
                ", telephone=" + telephone +
                ", isValid=" + isValid +
                ", note=" + note +
                "}";
    }
}
